package model;

import java.sql.Timestamp;

public class Comment {
	private String content;
	private Timestamp commentTime;
	private int userId;
	private int postId;
	private int commentId;
	public Comment(String content, Timestamp commentTime, int userId, int postId,
			int commentId) {
		super();
		this.content = content;
		this.commentTime = commentTime;
		this.userId = userId;
		this.postId = postId;
		this.commentId = commentId;
	}
	public Comment() {}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Timestamp getCommentTime() {
		return commentTime;
	}
	public void setCommentTime(Timestamp commentTime) {
		this.commentTime = commentTime;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public int getPostId() {
		return postId;
	}
	public void setPostId(int postId) {
		this.postId = postId;
	}
	public int getCommentId() {
		return commentId;
	}
	public void setCommentId(int commentId) {
		this.commentId = commentId;
	}
	@Override
	public String toString() {
		return "Comment [commentId=" + commentId + ", commentTime="
				+ commentTime + ", content=" + content + ", postId=" + postId
				+ ", userId=" + userId + "]";
	}
}
